Skip to content

feat(hanzi-structure): unified Wubi decomposition standard v1 - #313

Merged
wangzhizhou merged 2 commits into
mainfrom
dev
Nov 14, 2026
Merged

wangzhizhou merged 2 commits into
mainfrom
dev

Conversation

@wangzhizhou

Copy link
Copy Markdown
Contributor

内容

按“统一标准拆字逻辑”落地 ADR-358 / 标准 v1:

  • 新增 docs/standards/wubi-decomposition.md:标准逻辑与方案数据分离;
  • 新增 data/learning/wubi86-root-inventory.tsv:237 条标准字根/键位(官方字根 + 标准变体);
  • build_b0.py --root-inventory:full 必须逐组件在标准清单中且键位与码位一致;
  • B0 schema v7:新增 scheme / standardVersion;positionMismatch 成为标准诊断,full 必须为空;
  • validate_b0.py 强制该契约。

结果

指标 前 后
B0 1,000 字 full 965 910
B0 1,000 字 partial 31 86
B0 3,000 字 full 2,759 2,554
B0 3,000 字 partial 87 292
B0 3,000 字 unknown 154 154
运行时 full 2,602 2,554

减少的 full 主要是 D2 组件不在标准字根清单、或末位识别码槽/键位不能自洽的条目;它们被如实降为 partial,不再“看起来完整”。

98 / 新世纪

标准逻辑、B0 schema、N2/N3、测试与报告通用;字根表、码表、键位、识别码规则和拆字数据必须各自提供(需许可来源)。不能把 86 的拆字数据直接移植。

验证

  • validate_b0.py PASS
  • make macos-offline-tests 67 文件 / 335 例 PASS
  • make verify PASS(538 产物零网络符号)

Signed-off-by: wangzhizhou <824219521@qq.com>
- docs/standards/wubi-decomposition.md: scheme-parameterized standard (86 now, 98/new-century via profiles)
- 237-root inventory; full requires every component in inventory with matching key
- schema v7: scheme/standardVersion; positionMismatch is a standard diagnostic
- B0 3k full 2554/partial 292/unknown 154; 1k full 910
- ADR-358/report 284; validator/tests updated

Signed-off-by: wangzhizhou <824219521@qq.com>
@wangzhizhou
wangzhizhou merged commit 343ce01 into main Nov 14, 2026
4 checks passed
wangzhizhou added a commit that referenced this pull request Nov 14, 2026
Signed-off-by: wangzhizhou <824219521@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant